package com.suirich.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suirich.bean.Account;
import com.suirich.service.AccountService;
import com.suirich.service.BaseService;

@Service
@Transactional
public class AccountServiceImpl extends BaseService implements AccountService {

	public void create(Account account) {
		this.accountDao.create(account);
	}

    public Account read(Long accountId) {
        return this.accountDao.read(accountId);
    }
    
    public List<Account> read(Account account) {
        return this.accountDao.read(account);
    }

    public void update(Account account) {
        this.accountDao.update(account);
    }

}
